<!--Copyright (C) Kherty.  All rights reserved.-->
<ResourceDictionary
  xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
  xmlns:ss="http://schemas.Kherty.com/office/2007/spreadsheet"
  xmlns:ssui="clr-namespace:OpenLS.Spreadsheet.UI" 
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
    xmlns:Internals="clr-namespace:OpenLS.Spreadsheet.UI.Internals"
  xmlns:Resources="clr-namespace:OpenLS.Spreadsheet.UI.Internals.Resources"
  x:Class="OpenLS.Spreadsheet.UI.CustomFiltersResources"
    >
  <ResourceDictionary.MergedDictionaries>
    <ssui:EnumResources/>
  </ResourceDictionary.MergedDictionaries>
  <DataTemplate DataType="{x:Type ss:CustomFilters}">
    <Grid>
      <Grid.ColumnDefinitions>
        <ColumnDefinition/>
        <ColumnDefinition/>
      </Grid.ColumnDefinitions>
      <Grid.RowDefinitions>
        <RowDefinition/>
        <RowDefinition/>
        <RowDefinition/>
      </Grid.RowDefinitions>
      <ComboBox Margin="2" SelectionChanged="OnSelectionChanged" Name="first" Loaded="OnComboLoaded"></ComboBox>
      <TextBox Margin="2" Grid.Column ="1" Text="{Binding Path=First.Value}"></TextBox>
      <StackPanel Orientation ="Horizontal" Grid.Row="1" Margin="2" >
        <RadioButton Content="{x:Static Resources:UIStringTable.And}" IsChecked="{Binding And}"></RadioButton>
        <RadioButton Content="{x:Static Resources:UIStringTable.Or}"></RadioButton>
      </StackPanel>
      <ComboBox Margin="2"  Grid.Row ="2" SelectionChanged="OnSelectionChanged" Name="second" Loaded="OnComboLoaded"></ComboBox>
      <TextBox Margin="2" Grid.Row="2" Grid.Column ="1"  Text="{Binding Path=Second.Value}"></TextBox>
    </Grid>

  </DataTemplate>
    
</ResourceDictionary>